package com.ruoyi.service.impl;

import com.ruoyi.mapper.SysRoleMapper;
import com.ruoyi.mapper.UserMapper;
import com.ruoyi.pojo.SysRole;
import com.ruoyi.service.SysRoleService;
import com.ruoyi.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> selectrole(SysRole sysRole, Integer pageIndex, Integer pageSize) {
        return sysRoleMapper.selectrole(sysRole,pageIndex,pageSize);
    }

    @Override
    public Integer count(SysRole sysRole) {
        return sysRoleMapper.count(sysRole);
    }

    @Override
    public Integer updeRole(Integer roleId) {
        return sysRoleMapper.updeRole(roleId);
    }

    @Override
    public Integer updateRole(SysRole sysRole) {
        return sysRoleMapper.updateRole(sysRole);
    }

    @Override
    public Integer addRole(SysRole sysRole) {
        return sysRoleMapper.addRole(sysRole);
    }
}
